package Level01.Three;

/**
 * 使用“同步方法”改写训练案例 1，保证运行结果的正确。
 */
public class Test {
    public static void main(String[] args) {
        Section section = new Section();
        Thread south = new Thread(section, "广州南站");
        Thread north = new Thread(section, "广州北站");
        Thread east = new Thread(section, "广州东站");
        Thread west = new Thread(section, "广州西站");
        south.start();
        north.start();
        east.start();
        west.start();
    }
}
